# encoding: UTF-8

class Site::GamesController < ApplicationController

  layout 'site'

  def index
    @xunbao = Raid.open_status.xunbao.limit(5)
    @hanghui = Raid.open_status.hanghui.limit(5)
    @category = ['游戏资料']
    @categories = Topic.categories
    @gamedata = Level.open_status.level_guides
    @gamerole = Role.open_status.all
    @gamefeature = Feature.open_status.all
    @gameequip = Sort.open_status.equips_sorts
    @newto = Manual.open_status.newto_all
    set_seo_meta '详细内容_游戏资料'
  end

  def show
    @archive = Guide.find(params[:id])
    @category = ['游戏资料']
    @categories = Topic.categories
    #@categories = ['新手指南','游戏特色','道具装备']
    @newto = Manual.open_status.newto_all
    set_seo_meta @archive.title+'_详细内容_游戏资料'
  end 

end
